package com.cxdr.awsips.distribute.bean;

import java.util.ArrayList;
import java.util.List;

import com.cxdr.awsips.distribute.rule.FileNameRule;
import com.cxdr.awsips.distribute.rule.StationRule;
import com.cxdr.awsips.distribute.rule.TimeRule;

/**
 * 分类链路目的地
 * @author pugang
 *
 */
public class Link_Target implements Target{
	private String id;
	private String link_id;
	private String target_type;
	// 协议 和link_type 相关联
	private Protocol protocol;
	private String link_type;
	private String user_name;
	private String pass;
	private String address;
	private String ip;
	private String port;
	private String folder;
	private List<FileNameRule> fileNameRules = new ArrayList<FileNameRule>();
	private List<StationRule> stationRules = new ArrayList<StationRule>();
	private List<TimeRule> timeRules = new ArrayList<TimeRule>();
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getLink_id() {
		return link_id;
	}
	public void setLink_id(String link_id) {
		this.link_id = link_id;
	}
	public String getTarget_type() {
		return target_type;
	}
	public void setTarget_type(String target_type) {
		this.target_type = target_type;
	}
	public String getLink_type() {
		return link_type;
	}
	public void setLink_type(String link_type) {
		this.link_type = link_type;
	}
	public String getUser_name() {
		return user_name;
	}
	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}
	public String getPass() {
		return pass;
	}
	public void setPass(String pass) {
		this.pass = pass;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getPort() {
		return port;
	}
	public void setPort(String port) {
		this.port = port;
	}
	public String getFolder() {
		return folder;
	}
	public void setFolder(String folder) {
		this.folder = folder;
	}
	public Protocol getProtocol() {
		return protocol;
	}
	public void setProtocol(Protocol protocol) {
		this.protocol = protocol;
	}
	@Override
	public String getBackpath() {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public void setBackpath(String path) {
		// TODO Auto-generated method stub
		
	}
	public List<FileNameRule> getFileNameRules() {
		return fileNameRules;
	}
	public void setFileNameRules(List<FileNameRule> fileNameRules) {
		this.fileNameRules = fileNameRules;
	}
	public List<StationRule> getStationRules() {
		return stationRules;
	}
	public void setStationRules(List<StationRule> stationRules) {
		this.stationRules = stationRules;
	}
	public List<TimeRule> getTimeRules() {
		return timeRules;
	}
	public void setTimeRules(List<TimeRule> timeRules) {
		this.timeRules = timeRules;
	}
	
	public void addFileNameRule(FileNameRule rule){
		fileNameRules.add(rule);
	}
	public void addStationRules(StationRule rule){
		stationRules.add(rule);
	}
	public void addTimeRule(TimeRule rule){
		timeRules.add(rule);
	}
	
}
